You are here

public static function DataProvider::isNestedField in RESTful 7.2

Checks if the passed in string is a dot-nested field.

Parameters

string $field_name: The field name.

Return value

bool TRUE if the field is nested. FALSE otherwise.

Overrides DataProviderInterface::isNestedField

4 calls to DataProvider::isNestedField()
CacheDecoratedDataProvider::isNestedField in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Checks if the passed in string is a dot-nested field.
DataProvider::parseRequestForListFilter in src/Plugin/resource/DataProvider/DataProvider.php
Filter the query for list.
DataProviderDecorator::isNestedField in src/Plugin/resource/DataProvider/DataProviderDecorator.php
Checks if the passed in string is a dot-nested field.
DataProviderEntity::queryForListFilter in src/Plugin/resource/DataProvider/DataProviderEntity.php
Filter the query for list.

File

src/Plugin/resource/DataProvider/DataProvider.php, line 551
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.

Class

DataProvider

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public static function isNestedField($field_name) {
  return strpos($field_name, '.') !== FALSE;
}