association-1.0.0-alpha2/src/Behavior/ManagerBuilderInterface.php

src/Behavior/ManagerBuilderInterface.php
<?php

namespace Drupal\association\Behavior;

use Drupal\association\Entity\AssociationInterface;
use Drupal\Core\Cache\CacheableDependencyInterface;

/**
 * Interface for the controls builder of the association type behaviors.
 *
 * Behaviors plugins can implement this interface directly or they can defer
 * the functionality to a separate class that implements this for them.
 */
interface ManagerBuilderInterface extends CacheableDependencyInterface {

  /**
   * Set the association that this builder will build management pages for.
   *
   * This association needs to be set before calling buildeManageUI() or the
   * cacheable dependency methods.
   *
   * @param \Drupal\association\Entity\AssociationInterface $assoc
   *   The association entity to build the content management UI for.
   */
  public function setAssociation(AssociationInterface $assoc);

  /**
   * Build an interface for managing a linking of association content.
   *
   * @return array
   *   Renderable array of UI pages or forms for managing linked entity
   *   content of the association being managed.
   */
  public function buildManagerUi();

}

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

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