MainContentBlockPluginInterface.php 479 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Core\Block;
  3. /**
  4. * The interface for "main page content" blocks.
  5. *
  6. * A main page content block represents the content returned by the controller.
  7. *
  8. * @ingroup block_api
  9. */
  10. interface MainContentBlockPluginInterface extends BlockPluginInterface {
  11. /**
  12. * Sets the main content render array.
  13. *
  14. * @param array $main_content
  15. * The render array representing the main content.
  16. */
  17. public function setMainContent(array $main_content);
  18. }