PHP Class Craft\Neo_ReasonsService

See also: https://github.com/mmikkel/Reasons-Craft
Inheritance: extends craft\BaseApplicationComponent
Mostrar archivo Open project: benjamminf/craft-neo

Public Methods

Method Description
getConditionals ( ) : array Returns the conditionals just for Neo block types.
onSaveFieldLayout ( craft\Event $e ) Saves Neo block type conditionals from it's post data.
pluginInit ( ) Separate initialisation function to be called inside the NeoPlugin init method.
saveConditionals ( craft\Reasons_ConditionalsModel $conditionals ) Saves the conditional rules for a field.

Method Details

getConditionals() public method

Returns the conditionals just for Neo block types.
public getConditionals ( ) : array
return array

onSaveFieldLayout() public method

Saves Neo block type conditionals from it's post data.
public onSaveFieldLayout ( craft\Event $e )
$e craft\Event

pluginInit() public method

Separate initialisation function to be called inside the NeoPlugin init method.
public pluginInit ( )

saveConditionals() public method

Serves as a wrapper for ReasonsService::saveConditionals, which requires Reasons to exist first.
public saveConditionals ( craft\Reasons_ConditionalsModel $conditionals )
$conditionals craft\Reasons_ConditionalsModel