entity_generic-8.x-3.x-dev/src/GenericConfigManagerInterface.php

src/GenericConfigManagerInterface.php
<?php

namespace Drupal\entity_generic;

use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Provides an interface for an entity manager service.
 */
interface GenericConfigManagerInterface {

  /**
   * Instantiates a new instance of this entity handler.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   *   The service container this object should use.
   *
   * @return static
   *   A new instance of the entity handler.
   */
  public static function create(ContainerInterface $container);

  /**
   * Returns the list of all entities.
   *
   * @return array
   *   Entities list.
   */
  public function getAll();

  /**
   * Returns the list of key-value pairs for entities.
   *
   * Entities are those that will be used in select/radio widgets.
   *
   * @return array
   *   Options array.
   */
  public function getOptions();

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc