RestResourceConfig::normalizeRestMethod

protected RestResourceConfig::normalizeRestMethod($method) Normalizes the method to upper case and check validity. Parameters string $method: The request method. Return value string The normalised request method. Throws \InvalidArgumentException If the method is not supported. File core/modules/rest/src/Entity/RestResourceConfig.php, line 257 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected function normali

RestResourceConfig::getRestResourceDependencies

protected RestResourceConfig::getRestResourceDependencies() Returns the REST resource dependencies. Return value \Drupal\rest\Entity\ConfigDependencies File core/modules/rest/src/Entity/RestResourceConfig.php, line 241 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected function getRestResourceDependencies() { return \Drupal::service('class_resolver')->getInstanceFromDefinition(ConfigDependencies::class); }

RestResourceConfig::getMethodsForMethodGranularity

protected RestResourceConfig::getMethodsForMethodGranularity() Retrieves a list of supported HTTP methods for this resource. Return value string[] A list of supported HTTP methods. File core/modules/rest/src/Entity/RestResourceConfig.php, line 133 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected function getMethodsForMethodGranularity() { $methods = array_keys($this->configuration); return array_map([$

RestResourceConfig::getMethods

public RestResourceConfig::getMethods() Retrieves a list of supported HTTP methods. Return value string[] A list of supported HTTP methods. Overrides RestResourceConfigInterface::getMethods File core/modules/rest/src/Entity/RestResourceConfig.php, line 116 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function getMethods() { switch ($this->granularity) { case RestResourceConfigInterface::METHOD_GRANU

RestResourceConfig::getFormatsForMethodGranularity

protected RestResourceConfig::getFormatsForMethodGranularity($method) Retrieves a list of supported response formats. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported format IDs. File core/modules/rest/src/Entity/RestResourceConfig.php, line 192 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected function getFormatsForMethodGranularity($method) { $method

RestResourceConfig::getFormats

public RestResourceConfig::getFormats($method) Retrieves a list of supported response formats. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported format IDs. Overrides RestResourceConfigInterface::getFormats File core/modules/rest/src/Entity/RestResourceConfig.php, line 172 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function getFormats($method) { swi

RestResourceConfig::getAuthenticationProvidersForMethodGranularity

public RestResourceConfig::getAuthenticationProvidersForMethodGranularity($method) Retrieves a list of supported authentication providers. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported authentication provider IDs. File core/modules/rest/src/Entity/RestResourceConfig.php, line 161 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function getAuthenticatio

RestResourceConfig::getAuthenticationProviders

public RestResourceConfig::getAuthenticationProviders($method) Retrieves a list of supported authentication providers. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported authentication provider IDs. Overrides RestResourceConfigInterface::getAuthenticationProviders File core/modules/rest/src/Entity/RestResourceConfig.php, line 141 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest

RestResourceConfig::calculateDependencies

public RestResourceConfig::calculateDependencies() (@inheritdoc) Overrides ConfigEntityBase::calculateDependencies File core/modules/rest/src/Entity/RestResourceConfig.php, line 212 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function calculateDependencies() { parent::calculateDependencies(); foreach ($this->getRestResourceDependencies()->calculateDependencies($this) as $type => $dependencies)

RestResourceConfig::$id

The REST resource config id. Type: string File core/modules/rest/src/Entity/RestResourceConfig.php, line 36 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code protected $id;