interface UsesFeatureInterface (View source)

Denotes that a particular block controller uses features, and allows the block controller to specify which features it requires to function. This allows blocks like the calendar, for example, to specify that they require the Calendar feature to function, which lets them use the feature fallback if the current theme doesn't support those features.

Methods

array
getRequiredFeatures()

The list of one or more Features this class makes use of.

Details

array getRequiredFeatures()

The list of one or more Features this class makes use of.

Return Value

array

Feature handles

See also

Features The class that contains all the available feature constants
Controller::getRequiredFeatures An example of a core block using a feature