FarmFlagInterface.php in farmOS 2.x
Namespace
Drupal\farm_flag\EntityFile
modules/core/flag/src/Entity/FarmFlagInterface.phpView source
<?php
namespace Drupal\farm_flag\Entity;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface for defining FarmFlag config entities.
*
* @ingroup farm
*/
interface FarmFlagInterface extends ConfigEntityInterface {
/**
* Returns the flag label.
*
* @return string
* The flag label.
*/
public function getLabel();
/**
* Returns the entity types and bundles that this flag applies to.
*
* @return array
* An array of arrays, keyed by entity type machine name, listing bundles
* (or `all`) that this flag applies to.
*/
public function getEntityTypes();
}
Interfaces
Name | Description |
---|---|
FarmFlagInterface | Provides an interface for defining FarmFlag config entities. |