You are here

IPEAccessInterface.php in Panels 8.4

Same filename and directory in other branches
  1. 8.3 panels_ipe/src/Plugin/IPEAccessInterface.php

File

panels_ipe/src/Plugin/IPEAccessInterface.php
View source
<?php

namespace Drupal\panels_ipe\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant;

/**
 * Defines an interface for IPE Access plugins.
 */
interface IPEAccessInterface extends PluginInspectionInterface {

  /**
   * Provides logic to determine if a given plugin applies to a display.
   *
   * @param \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant $display
   *
   * @return boolean
   */
  public function applies(PanelsDisplayVariant $display);

  /**
   * @param \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant $display
   *
   * @return mixed
   */
  public function access(PanelsDisplayVariant $display);

}

Interfaces

Namesort descending Description
IPEAccessInterface Defines an interface for IPE Access plugins.