Provides an opportunity to manipulate the field configuration.

Refs #2245
This commit is contained in:
Samuel Georges 2016-09-27 17:00:26 +10:00
parent cd0cd260b5
commit 1e3f5a22ef
1 changed files with 10 additions and 0 deletions

View File

@ -307,6 +307,7 @@ class RelationController extends ControllerBehavior
$this->alias = camel_case('relation ' . $field);
$this->config = $this->makeConfig($this->getConfig($field), $this->requiredRelationProperties);
$this->controller->relationExtendConfig($this->config, $this->field);
/*
* Relationship details
@ -1266,6 +1267,15 @@ class RelationController extends ControllerBehavior
// Overrides
//
/**
* Provides an opportunity to manipulate the field configuration.
* @param object $config
* @param string $field
*/
public function relationExtendConfig($config, $field)
{
}
/**
* Provides an opportunity to manipulate the view widget.
* @param Backend\Classes\WidgetBase $widget