Search for hostname

  1. Search 7.x for hostname
  2. Search 9.5.x for hostname
  3. Search 10.3.x for hostname
  4. Search 11.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.
CommentHostnameUpdateTest class core/modules/comment/tests/src/Functional/Update/CommentHostnameUpdateTest.php Tests that comment hostname settings are properly updated.
CommentHostnameUpdateTest.php file core/modules/comment/tests/src/Functional/Update/CommentHostnameUpdateTest.php
CommentHostnameUpdateTest::setDatabaseDumpFiles function core/modules/comment/tests/src/Functional/Update/CommentHostnameUpdateTest.php Set database dump files to be used.
CommentHostnameUpdateTest::testCommentPostUpdateAddIpAddressSetting function core/modules/comment/tests/src/Functional/Update/CommentHostnameUpdateTest.php Tests comment_post_update_add_ip_address_setting().
CommentHostnameUpdateTest::testCommentUpdate8600 function core/modules/comment/tests/src/Functional/Update/CommentHostnameUpdateTest.php Tests comment_update_8600().
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.
FileTransferTest::$hostname property core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
FileUrlTest::testFilesUrlWithDifferentHostName function core/modules/file/tests/src/Kernel/FileUrlTest.php Test 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.