Search for hostname

  1. Search 7.x for hostname
  2. Search 9.5.x for hostname
  3. Search 8.9.x for hostname
  4. Search 10.3.x for hostname
  5. Other projects
Title Object type File name Summary
BuildTestBase::$hostName property core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Our native host name, used by PHP when it starts up the server.
Comment::getDefaultHostname function core/modules/comment/src/Entity/Comment.php Returns the default value for entity hostname base field.
Comment::getHostname function core/modules/comment/src/Entity/Comment.php Returns the comment author's hostname.
Comment::setHostname function core/modules/comment/src/Entity/Comment.php Sets the hostname of the author of the comment.
CommentHostnameTest class core/modules/comment/tests/src/Kernel/CommentHostnameTest.php Tests the hostname base field.
CommentHostnameTest.php file core/modules/comment/tests/src/Kernel/CommentHostnameTest.php
CommentHostnameTest::$modules property core/modules/comment/tests/src/Kernel/CommentHostnameTest.php Modules to enable.
CommentHostnameTest::testGetDefaultHostname function core/modules/comment/tests/src/Kernel/CommentHostnameTest.php Tests hostname default value callback.
CommentInterface::getHostname function core/modules/comment/src/CommentInterface.php Returns the comment author's hostname.
CommentInterface::setHostname function core/modules/comment/src/CommentInterface.php Sets the hostname of the author of the comment.
DrupalKernel::validateHostname function core/lib/Drupal/Core/DrupalKernel.php Validates the hostname supplied from the HTTP request.
DrupalKernel::validateHostnameLength function core/lib/Drupal/Core/DrupalKernel.php Validates a hostname length.
FileTransfer::$hostname property core/lib/Drupal/Core/FileTransfer/FileTransfer.php The hostname for this file transfer.
FileUrlTest::testFilesUrlWithDifferentHostName function core/modules/file/tests/src/Kernel/FileUrlTest.php Tests public files with a different host name from settings.
ValidateHostnameTest class core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php @coversDefaultClass \Drupal\Core\DrupalKernel
@group DrupalKernel
ValidateHostnameTest.php file core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php
ValidateHostnameTest::providerTestValidateHostname function core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php Provides test data for testValidateHostname().
ValidateHostnameTest::testValidateHostname function core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php @covers ::validateHostname
@dataProvider providerTestValidateHostname

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.