generateDisplayId example

if (empty($plugin_id)) {
      return FALSE;
    }

    $plugin = Views::pluginManager('display')->getDefinition($plugin_id);

    if (empty($plugin)) {
      $plugin['title'] = t('Broken');
    }

    if (empty($id)) {
      $id = $this->generateDisplayId($plugin_id);

      // Generate a unique human-readable name by inspecting the counter at the       // end of the previous display ID, e.g., 'page_1'.       if ($id !== 'default') {
        preg_match("/[0-9]+/", $id$count);
        $count = $count[0];
      }
      else {
        $count = '';
      }

      
Home | Imprint | This part of the site doesn't use cookies.