You are here

OgGroupAlwaysTrue.php in Organic groups 8

Namespace

Drupal\og

File

src/OgGroupAlwaysTrue.php
View source
<?php

declare (strict_types=1);
namespace Drupal\og;

use Drupal\Core\TypedData\Plugin\DataType\BooleanData;

/**
 * Overridden boolean data type to hardcode TRUE.
 */
class OgGroupAlwaysTrue extends BooleanData {

  /**
   * {@inheritdoc}
   */
  public function getValue() {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function getCastedValue() {
    return $this
      ->getValue();
  }

}

Classes

Namesort descending Description
OgGroupAlwaysTrue Overridden boolean data type to hardcode TRUE.