Back to FieldsServiceInterface class

Method validateSection

public string|null
validateSection
(mixed $section, mixed $item = null)
Returns a valid section for the given section. If it is not valid then null is returned.
Parameters
  • string $section The section to get the mapping for
  • object $item The item
Returns
  • string|null The new section
Since
  • 4.0.0

Method validateSection - Source code

/**
 * Returns a valid section for the given section. If it is not valid then null
 * is returned.
 *
 * @param   string  $section  The section to get the mapping for
 * @param   object  $item     The item
 *
 * @return  string|null  The new section
 *
 * @since   4.0.0
 */
public function validateSection($section, $item = null);