You are here

class ParagraphBlocksPanelsIpeManager in Paragraph blocks 8

Handles panels IPE hooks to rename paragraph blocks.

Hierarchy

Expanded class hierarchy of ParagraphBlocksPanelsIpeManager

1 file declares its use of ParagraphBlocksPanelsIpeManager
paragraph_blocks.module in ./paragraph_blocks.module
Contains paragraph_blocks.module.

File

src/ParagraphBlocksPanelsIpeManager.php, line 11

Namespace

Drupal\paragraph_blocks
View source
class ParagraphBlocksPanelsIpeManager extends ParagraphBlocksPanelsIpeBaseManager {

  /**
   * PanelsParagraphsPanelsIpeManager constructor.
   *
   * @param \Drupal\paragraph_blocks\ParagraphBlocksEntityManager $paragraph_blocks_entity_manager
   *   The Paragraph blocks entity manager.
   */
  public function __construct(ParagraphBlocksEntityManager $paragraph_blocks_entity_manager) {
    parent::__construct('paragraph_field', 'Page: @label', $paragraph_blocks_entity_manager
      ->getRefererEntity());
  }

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    return new static($container
      ->get('paragraph_blocks.entity_manager'));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ParagraphBlocksPanelsIpeBaseManager::$entity protected property The current entity, or NULL.
ParagraphBlocksPanelsIpeBaseManager::$labelFormat protected property The label format.
ParagraphBlocksPanelsIpeBaseManager::$pluginTypeId protected property The plugin type id.
ParagraphBlocksPanelsIpeBaseManager::getTitle protected function Returns the plugin's paragraph title.
ParagraphBlocksPanelsIpeBaseManager::hookFormPanelsIpeBlockPluginFormAlter public function Change the title on the add/edit form.
ParagraphBlocksPanelsIpeBaseManager::hookPanelsIpeBlocksAlter public function Removes unused paragraphs and update the panels title from the paragraph.
ParagraphBlocksPanelsIpeManager::create public static function
ParagraphBlocksPanelsIpeManager::__construct public function PanelsParagraphsPanelsIpeManager constructor. Overrides ParagraphBlocksPanelsIpeBaseManager::__construct