You are here

class InitialSettingsService in Media Parent Entity Link 8

Class InitialSettingsService.

Providing some initial settings for the module, to avoid hardcoding and in .module file and allow for easier extending to other formatters and sources

Hierarchy

Expanded class hierarchy of InitialSettingsService

1 string reference to 'InitialSettingsService'
media_parent_entity_link.services.yml in ./media_parent_entity_link.services.yml
media_parent_entity_link.services.yml
1 service uses InitialSettingsService
media_parent_entity_link.initial in ./media_parent_entity_link.services.yml
Drupal\media_parent_entity_link\InitialSettingsService

File

src/InitialSettingsService.php, line 11

Namespace

Drupal\media_parent_entity_link
View source
class InitialSettingsService {

  /**
   * @var array of field formatter plugin ids
   */
  protected $formatters = [
    'image',
    'responsive_image',
  ];

  /**
   * @var array of media sources
   */
  protected $mediasources = [
    'image',
  ];

  /**
   * Constructs a new InitialSettingsService object.
   */
  public function __construct() {
  }

  /**
   * @return array
   */
  public function getFormatters() {
    return $this->formatters;
  }

  /**
   * @return array
   */
  public function getMediasources() {
    return $this->mediasources;
  }

}

Members