Answers.Body: <p>it seems that first column of table view is special and is called <a href="https://github.com/craftcms/cms/blob/25543763fb8fd7604c352a8273be7e53779632ea/src/templates/_elements/tableview/elements.html#L21" rel="nofollow noreferrer">here</a>
  which calls mentioned hook in question.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-17T12:47:07.873Z
Answers.LastActivityDate: 2019-10-17T12:47:07.873Z
Answers.UserDisplayName: user9975
Body: <p>I am trying to find out how HTML title is generated in entry index page in Control Panel.</p>
  
  <p>i know it is generated in <code>src/templates/_elements/element.html</code> file   by <code>$this-&gt;hook('cp.elements.element', [$this, '_getCpElementHtml']);</code> in <code>src/web/View.php</code> and i see there is a line in entry.php which calls author with</p>
  
  <pre><code>return $author ? Craft::$app-&gt;getView()-&gt;renderTemplate('_elements/element', ['element' =&gt; $author]) : '';
  </code></pre>
  
  <p>but i can't find how craft calls for title attribute.?</p>
  
Tags: <craft3><entry><hook><element>
Title: How html title is generated in entry index page in CP
ThreadText: # How html title is generated in entry index page in CP
  
  (Asked by: username_0 on 2019-10-15)
  
  I am trying to find out how HTML title is generated in entry index page in Control Panel.
  
  i know it is generated in `src/templates/_elements/element.html` file by `$this->hook('cp.elements.element', [$this, '_getCpElementHtml']);` in `src/web/View.php` and i see there is a line in entry.php which calls author with
  
  ```
  return $author ? Craft::$app->getView()->renderTemplate('_elements/element', ['element' => $author]) : '';
  
  ```
  
  but i can't find how craft calls for title attribute.?
  
  **Tags:** craft3, entry, hook, element
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-17. Score: 1 | Accepted answer
  
  it seems that first column of table view is special and is called [here](https://github.com/craftcms/cms/blob/25543763fb8fd7604c352a8273be7e53779632ea/src/templates/_elements/tableview/elements.html#L21)
  which calls mentioned hook in question.
  
  
  ---
  
  