You are here

ParagraphBlocksPanelsIpeManager.php in Paragraph blocks 8

File

src/ParagraphBlocksPanelsIpeManager.php
View source
<?php

namespace Drupal\paragraph_blocks;

use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\paragraph_blocks\ParagraphBlocksEntityManager;

/**
 * Handles panels IPE hooks to rename paragraph blocks.
 */
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'));
  }

}

Classes

Namesort descending Description
ParagraphBlocksPanelsIpeManager Handles panels IPE hooks to rename paragraph blocks.