Commit 60d78780 authored by alexpott's avatar alexpott

Issue #2152825 by Berdir: HEAD BROKEN: rename...

Issue #2152825 by Berdir: HEAD BROKEN: rename FieldItemBase::getFieldSetting[s]() to getSetting[s]().
parent 134cfbe4
......@@ -68,7 +68,7 @@ public static function schema(FieldDefinitionInterface $field_definition) {
public function getConstraints() {
$constraints = parent::getConstraints();
if ($max_length = $this->getFieldSetting('max_length')) {
if ($max_length = $this->getSetting('max_length')) {
$constraint_manager = \Drupal::typedDataManager()->getValidationConstraintManager();
$constraints[] = $constraint_manager->create('ComplexData', array(
'value' => array('Length' => array('max' => $max_length))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment