Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291355

Replace NodeType Condition to EntityBundle Condition.

$
0
0

Problem/Motivation

If you want to display some blocks on Taxonomy pages, user pages or contact pages there is no way other then writing PHP code. Or you can use url hacks like taxonomy/ or user/*
We have lot of entities in D8 so I think it is time to replace NodeType visibility setting in blocks with EntityBundle. IMO It is a simple task given that we are working on #1743686: Change notice: Condition Plugin System follow up issues. I also tried to discuss it on #1880274-7: Reimplement block visibility settings where @xjm suggested it is feature request.

Proposed resolution

Convert \Drupal\node\Plugin\Core\Condition\NodeType to \Drupal\entity\Plugin\Core\Condition\EntityBundle

Remaining tasks

  • Convert \Drupal\node\Plugin\Core\Condition\NodeType to \Drupal\entity\Plugin\Core\Condition\EntityBundle
  • Replace block visibility node type setting with entity bundle.

User interface changes

It will replace block visibility node type setting with entity bundle.

API changes

Nothing

#1880274: Reimplement block visibility settings
Possible follow up of #1743686: Change notice: Condition Plugin System.


Viewing all articles
Browse latest Browse all 291355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>