Exemplo n.º 1
0
  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    /** @var static $data_type */
    $data_type = parent::create($container, $configuration, $plugin_id, $plugin_definition);

    /** @var \Drupal\search_api\Backend\BackendPluginManager $backend_manager */
    $backend_manager = $container->get('plugin.manager.search_api.backend');
    $data_type->setBackendManager($backend_manager);

    return $data_type;
  }