You are here

public function BackgroundImageForm::inheritOverrideOptions in Background Image 8

Same name and namespace in other branches
  1. 2.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::inheritOverrideOptions()
  2. 2.0.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::inheritOverrideOptions()

Return value

array

2 calls to BackgroundImageForm::inheritOverrideOptions()
BackgroundImageForm::buildImage in src/Form/BackgroundImageForm.php
Builds the "Image" group.
BackgroundImageForm::buildSetting in src/Form/BackgroundImageForm.php
Builds a setting element.

File

src/Form/BackgroundImageForm.php, line 595

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

public function inheritOverrideOptions() {
  return [
    BackgroundImageInterface::INHERIT => $this->parent ? $this
      ->t('Inherit from %label', [
      '%label' => $this->parent
        ->getTypeLabel(),
    ]) : $this
      ->t('Inherit'),
    BackgroundImageInterface::NORMAL => $this
      ->t('Override'),
  ];
}