You are here

protected function FieldFormBase::getEditableConfigNames in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::getEditableConfigNames()
  2. 8.3 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::getEditableConfigNames()

Gets the configuration names that will be editable.

Return value

array An array of configuration object names that are editable if called in conjunction with the trait's config() method.

Overrides ConfigFormBaseTrait::getEditableConfigNames

File

src/Form/FieldFormBase.php, line 189

Class

FieldFormBase
Base form for fields.

Namespace

Drupal\ds\Form

Code

protected function getEditableConfigNames() {
  if (isset($this->field, $this->field['id'])) {
    return array(
      'ds.field.' . $this->field['id'],
    );
  }
  else {
    return array();
  }
}