Commit 3d4755b6 authored by catch's avatar catch
Browse files

Issue #2859197 by Wim Leers, Abhijith S, borisson_, lauriii, swentel, joachim:...

Issue #2859197 by Wim Leers, Abhijith S, borisson_, lauriii, swentel, joachim: Document that block_content entities are not designed to be displayed outside of blocks

(cherry picked from commit 681597b4)
parent 9966afcb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7,6 +7,13 @@

/**
 * View builder handler for custom blocks.
 *
 * Note: Custom blocks (block_content entities) are not designed to be displayed
 * outside of blocks! This BlockContentViewBuilder class is designed to be used
 * by \Drupal\block_content\Plugin\Block\BlockContentBlock::build() and by
 * nothing else.
 *
 * @see \Drupal\block_content\Plugin\Block\BlockContentBlock
 */
class BlockContentViewBuilder extends EntityViewBuilder {