og-8.x-1.x-dev/src/OgGroupResolverBase.php

src/OgGroupResolverBase.php
<?php

declare(strict_types=1);

namespace Drupal\og;

use Drupal\Core\Plugin\PluginBase;

/**
 * Base class for OgGroupResolver plugins.
 */
abstract class OgGroupResolverBase extends PluginBase implements OgGroupResolverInterface {

  /**
   * Whether the group resolving process can be stopped.
   */
  protected bool $propagationStopped = FALSE;

  /**
   * {@inheritdoc}
   */
  public function stopPropagation() {
    $this->propagationStopped = TRUE;
  }

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

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc