예제 #1
0
 /**
  * {@inheritdoc}
  */
 public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 {
     /** @var static $row */
     $row = parent::create($container, $configuration, $plugin_id, $plugin_definition);
     /** @var \Drupal\Core\Entity\EntityManagerInterface $entity_manager */
     $entity_manager = $container->get('entity.manager');
     $row->setEntityManager($entity_manager);
     /** @var \Drupal\Core\Logger\LoggerChannelInterface $logger */
     $logger = $container->get('logger.factory')->get('search_api');
     $row->setLogger($logger);
     return $row;
 }