You are here

public static function EntityFieldHandlerHelper::get_selector_field_name in Entity API 7

Extracts the innermost field name from a data selector.

Parameters

$selector: The data selector.

Return value

string The last component of the data selector.

3 calls to EntityFieldHandlerHelper::get_selector_field_name()
EntityFieldHandlerHelper::get_value in views/handlers/entity_views_field_handler_helper.inc
Get the value of a certain data selector.
entity_views_field_definition in views/entity.views.inc
Helper function for adding a Views field definition to data selection based Views tables.
entity_views_handler_field_options::render_single_value in views/handlers/entity_views_handler_field_options.inc
Render a single field value.

File

views/handlers/entity_views_field_handler_helper.inc, line 114
Contains the EntityFieldHandlerHelper class.

Class

EntityFieldHandlerHelper
Helper class containing static implementations of common field handler methods.

Code

public static function get_selector_field_name($selector) {
  return ltrim(substr($selector, strrpos($selector, ':')), ':');
}