FilterInterface.php in Access Filter 8
Namespace
Drupal\access_filterFile
src/FilterInterface.phpView source
<?php
namespace Drupal\access_filter;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Symfony\Component\HttpFoundation\Request;
/**
* Provides an interface defining a Example entity.
*/
interface FilterInterface extends ConfigEntityInterface {
/**
* Parses YAML serialized properties.
*/
public function parse();
/**
* Checks the current access is allowed using the filter.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* A request instance.
*
* @return bool
* Boolean TRUE if allowed, FALSE otherwise.
*/
public function isAllowed(Request $request);
}
Interfaces
Name | Description |
---|---|
FilterInterface | Provides an interface defining a Example entity. |