You are here

ControllerInterface.php in Render cache 7.2

File

src/RenderCache/Controller/ControllerInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\render_cache\RenderCache\Controller\ControllerInterface
 */
namespace Drupal\render_cache\RenderCache\Controller;


/**
 * Interface to describe how RenderCache controller plugin objects are implemented.
 *
 * @ingroup rendercache
 */
interface ControllerInterface {

  /**
   * @return array
   */
  public function getContext();

  /**
   * @param array $context
   */
  public function setContext(array $context);

  /**
   * @param array $objects
   *
   * @return array
   */
  public function view(array $objects);

  /**
   * @param object[] $objects
   *
   * @return array
   */
  public function viewPlaceholders(array $objects);

  /**
   * @param array $args
   *
   * @return string
   */
  public static function renderPlaceholders(array $args);

}

Interfaces

Namesort descending Description
ControllerInterface Interface to describe how RenderCache controller plugin objects are implemented.