You are here

class MetaService in Easymeta 8

Hierarchy

Expanded class hierarchy of MetaService

1 string reference to 'MetaService'
easymeta.services.yml in ./easymeta.services.yml
easymeta.services.yml
1 service uses MetaService
easymeta.meta_service in ./easymeta.services.yml
Drupal\easymeta\MetaService

File

src/MetaService.php, line 8

Namespace

Drupal\easymeta
View source
class MetaService {
  protected $serviceValue;

  /**
   * When the service is created, set a value for the example variable.
   */
  public function __construct() {
    $this->serviceValue = \Drupal::config('easymeta.settings')
      ->get('use_og_meta');
  }

  /**
   * Return the value of the example variable.
   */
  public function getServiceMetaValue() {
    return $this->serviceValue;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MetaService::$serviceValue protected property
MetaService::getServiceMetaValue public function Return the value of the example variable.
MetaService::__construct public function When the service is created, set a value for the example variable.