Get the title for the given model ability.

@param  \Illuminate\Database\Eloquent\model  $ability
@return string
342269
protected function getSpecificModelAbilityTitle(Model $ability)
    {
        $name = $ability->name === '*' ? 'manage' : $ability->name;

        return $this->humanize(
            $name.' '.$this->basename($ability->entity_type).' #'.$ability->entity_id
        );
    }
377578
public function findOneByTitle($title)
    {
        $entityClass = $this->getEntityClass();

        return $this->getObjectManager()
                    ->getRepository($entityClass)
                    ->findOneByTitle($title);
    }
64223
public function getTitleNamed()
    {
        return !isset(self::getTitles()[$this->title]) ?: self::getTitles()[$this->title];
    }
1197943
public function getTitle($language = null)
    {
        if (!isset($this->titles[$language])) {
            return current($this->titles);
        }

        return $this->titles[$language];
    }
44372
protected function _getTitle()
    {
        if ($this->_getIsPlugin()) {
            try {
                return plugin($this->alias)->humanName;
            } catch (\Exception $e) {
                return $this->alias;
            }
        }

        return $this->alias;
    }
1112194
protected function getSection(Model $model): string
    {
        if ($this->sectionName !== null) {
            return $this->sectionName;
        }

        return $model->formName();
    }
932768
public function getText($model = null)
    {
        $text = (is_callable($this->text) && is_object($model)) ? call_user_func($this->text, $model) : $this->text;

        $title = null;
        if (is_callable($this->title) && is_object($model)) {
            $title = call_user_func($this->title, $model);
        } elseif ($this->title !== null) {
            $title = $this->title;
        } else {
            $title = $text;
        }

        if (! $this->hideTitle) {
            $this->setHtmlAttributes([
                'title' => $title,
                'data-toggle' => 'tooltip',
            ]);
        }

        $this->setHtmlAttributes([
            'class' => $this->class,
        ]);

        return $text;
    }
877793
protected function formatTitleWithAccessKey( $title ) {
		if ( $this->fieldWidget && method_exists( $this->fieldWidget, 'formatTitleWithAccessKey' ) ) {
			return $this->fieldWidget->formatTitleWithAccessKey( $title );
		}
		return $title;
	}
347232
def get_title(self, plural=True):
        
        value = self.title
        if value == self.parent_attr:
            return self.parent.get_title(plural=plural)

        if not value and self._meta.model:
            value = helpers.model_name(self._meta.model,
                                       self._meta.custom_model_name,
                                       self._meta.custom_model_name_plural,
                                       plural)
        elif self.title and plural:
            value = helpers.pluralize(self.title, self.title_plural)

        return helpers.capfirst_if_needed(value)
789251
protected function isBlanketModelAbility(Model $ability)
    {
        return $ability->name !== '*'
            && $ability->entity_type !== '*'
            && ! is_null($ability->entity_type)
            && is_null($ability->entity_id);
    }
308281
public function getFieldTitle($key)
    {
        $schema = $this->getModelSchema();

        if (array_key_exists('title', $schema[$key]))
            return $schema[$key]['title'];

        return $key;
    }
726401
public function title()
    {
        if ($this->title === null) {
            $this->setTitle($this->translator()->translation('Lost Password'));
        }

        return $this->title;
    }
1298159
public function checkGetId(Model $authority, $ability, $model = null)
    {
        $applicable = $this->compileAbilityIdentifiers($ability, $model);

        // We will first check if any of the applicable abilities have been forbidden.
        // If so, we'll return false right away, so as to not pass the check. Then,
        // we'll check if any of them have been allowed & return the matched ID.
        $forbiddenId = $this->findMatchingAbility(
            $this->getForbiddenAbilities($authority), $applicable, $model, $authority
        );

        if ($forbiddenId) {
            return false;
        }

        return $this->findMatchingAbility(
            $this->getAbilities($authority), $applicable, $model, $authority
        );
    }
999510
public function getControllerName(Model $model) {
		$modelNamePlural = $this->getModelNamePlural($model, false);
		$controllerName = mb_strtolower(Inflector::underscore($modelNamePlural));

		return $controllerName;
	}
1083641
protected function getAbilityIdsFromArray($abilities, array $attributes)
    {
        $groups = Helpers::groupModelsAndIdentifiersByType($abilities);

        $keyName = Models::ability()->getKeyName();

        $groups['strings'] = $this->abilitiesByName($groups['strings'], $attributes)
                                  ->pluck($keyName)->all();

        $groups['models'] = Arr::pluck($groups['models'], $keyName);

        return Arr::collapse($groups);
    }
1225135
protected function evalManageTitle()
    {
        if ($customTitle = $this->getConfig('manage[title]')) {
            return $customTitle;
        }

        switch ($this->manageMode) {
            case 'pivot':
            case 'list':
                if ($this->eventTarget == 'button-link') {
                    return 'backend::lang.relation.link_a_new';
                }

                return 'backend::lang.relation.add_a_new';
            case 'form':
                if ($this->readOnly) {
                    return 'backend::lang.relation.preview_name';
                }
                elseif ($this->manageId) {
                    return 'backend::lang.relation.update_name';
                }
                else {
                    return 'backend::lang.relation.create_name';
                }
        }
    }
734082
public function checkGetId(Model $authority, $ability, $model = null)
    {
        if ($this->isForbidden($authority, $ability, $model)) {
            return false;
        }

        $ability = $this->getAllowingAbility($authority, $ability, $model);

        return $ability ? $ability->getKey() : null;
    }